package com.xmut.mall.manager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xmut.mall.manager.entity.MenuEntity;
import com.xmut.mall.manager.utils.RespBean;
import com.xmut.mall.manager.vo.MenuVo;

import java.util.List;

public interface MenuService extends IService<MenuEntity> {
    /**
     * 管理端登录时获取根据用户权限获取菜单
     * @param memberId
     * @return
     */
    RespBean getUserMenu(Long memberId);

    /**
     * 获取一级菜单
     * @return
     */
    RespBean getMenuLevel1();

    /**
     * 获取菜单分类树
     * @return
     */
    List<MenuVo> getMenuTree(Long id);

    /**
     * 添加菜单
     * @param menu
     * @return
     */
    RespBean addMenu(MenuEntity menu);
}
